package com.logistics.material.mapper;

import com.logistics.material.entity.domain.Material;
import com.logistics.material.entity.domain.MaterialBack;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;
@Mapper
public interface MaterialMapper {

    /**
     * 查找物料列表
     * @param params
     * @return
     */
    List<Material> finalMaterials(Map<String, Object> params);

    /**
     * 查找库存物料
     * @param code
     * @return
     */
    List<Material> findInventoryMaterials(String code);

    /**
     * 查找退料列表
     * @param params
     * @return
     */
    List<MaterialBack> findMaterialBacks(Map<String, Object> params);

    /**
     * 查找减配中状态下优先级最高的托盘
     * @param priority
     * @return
     */
    String maxPrioritytray(String priority);
}
